target=boot.bin rom
.PHONY:everything clean all image
everything:$(target)
clean:
	rm -f $(target)
all: clean everything
boot.bin:b.asm
	nasm -o $@ $<
rom:loader.asm pm.inc
	nasm -o $@ $<
image:
	dd if=boot.bin of=hd.img bs=512 count=1 conv=notrunc
	sudo mount hd.img /mnt
	sudo cp rom /mnt
	@sleep 1
	sudo umount /mnt
